<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<link href="css/estilo.css" rel="stylesheet" type="text/css"
		media="screen" />
	<title>TransPort</title>

</h:head>
<h:body>
	<div id="topo">
		<div id="logo">
			<img src="Imagens/logo.png" width="136" height="109" alt="Trans-Port" />
		</div>
	</div>
	<h:form id="form">


		<div id="centro">
			<div id="login">
				<p:outputLabel for="usuario" value="Nome de Usuario: " />
				<br />
				<p:inputText size="40" id="usuario" value="#{loginMBean.login.usuario}" required="true"
					label="Nome de Usuario" />
				<br />
				<br />
				<p:outputLabel for="senha" value="Senha: " />
				<br />
				<p:password  id="senha"   value="#{loginMBean.login.senha}" label="Senha" size="40" />
				<br />
				<br />
				<p:commandButton id="btnLogin" value="Entrar" ajax="true" oncomplete="dialog.show();" update=":form:conf"
					action="#{loginMBean.executaLogin}" />
				<br />
				<br />
				<p:separator />
				<p:confirmDialog message="#{loginMBean.mensagem}" widgetVar="dialog"
					id="conf">
					<p:commandButton onclick="dialog.close();" value="Ok"></p:commandButton>
				</p:confirmDialog>
			</div>
			<div id="imgs">
				<img src="Imagens/caminhao.png" width="450" height="226"
					alt="Trans-Port" />
			</div>
		</div>
	</h:form>
</h:body>

</html>

